from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import register, login, logout, get_all_users, update_user, delete_user, get_user

router = DefaultRouter()
# router.register(r'users', UserViewSet)

urlpatterns = [
    path('', include(router.urls)),
    path('account/register/', register, name='register'),
    path('account/login/', login, name='login'),
    path('account/logout/', logout, name='logout'),
    path('users/', get_all_users, name='get_all_users'),
    path('users/<int:user_id>/update/', update_user, name='update_user'),
    path('users/<int:user_id>/delete/', delete_user, name='delete_user'),
    path('users/<int:user_id>/', get_user, name='get_user'),
]
